﻿using ASmile.Com;
using ASmile.Com.MDI;
using ASmile.DBModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ASmile.Win.DaBLL
{
    class MDIBLL : BLLBase, IMDIBLL
    {
        protected override string ControllerName => "SysManage/MDI";

        public List<Sys_RoleMenu> GetMenuByRole()
        {
            return GetList<Sys_RoleMenu>();
        }

        [WebApi("api/ASmile/LoginOut")]
        public ApiResult LoginOut()
        {
            return GetResult();
        }

        public ApiResult VerifyPwd(string pwd)
        {
            return GetResult(new ArgId(pwd));
        }
        
        public ApiResult ChangePwd(ArgChangePwd arg)
        {
            return GetResult(arg);
        }
    }
}